<!DOCTYPE html>
{extend name="common/application" /}
{block name="title"}<title>个人中心-实名认证</title>{/block}
{block name="css"}
<link rel="stylesheet" type="text/css" href="_CSS_/help.css" />
<link rel="stylesheet" type="text/css" href="_CSS_/certification.css"/>
<style type="text/css">
	.hide{display: none !important;}
</style>
{/block}
<!-- 主体内容 -->
{block name="content"}

			<!-- 主体内容 -->
			<div class="main">
				<div class="mainBody normalBox clearfix">
					<!--左菜单-->
					<ul class="menuList fl">
						<li class="showChild">
							<a class="menuItem dropBg" href="personal.html"><span class="icons icon-account"></span>账户管理</a>
							<div class="childMenu">
								<a class="menuchildItem" href="personal.html">个人资料</a>
								<a class="menuchildItem activeMenu" href="certification.html">实名认证</a>
								<a class="menuchildItem" href="account.html">账户安全</a>
							</div>
						</li>
						<li>
							<a class="menuItem dropBg" href="order.html"><span class="icons icon-order"></span>我的订单</a>
							<div class="childMenu">
								<a class="menuchildItem" href="order.html">我的订单</a>
							</div>
						</li>
						<li>
							<a class="menuItem dropBg" href="collect_news.html"><span class="icons icon-collection"></span>我的收藏</a>
							<div class="childMenu">
								<a class="menuchildItem" href="collect_news.html">资讯收藏</a>
								<a class="menuchildItem" href="collect_course.html">课程收藏</a>
								<a class="menuchildItem" href="collect_products.html">商品收藏</a>
								<a class="menuchildItem" href="collect_stores.html">店铺收藏</a>
							</div>
						</li>
						<li>
							<a class="menuItem dropBg" href="address.html"><span class="icons icon-address"></span>地址管理</a>
							<div class="childMenu">
								<a class="menuchildItem" href="address.html">地址管理</a>
							</div>
						</li>
						<li>
							<a class="menuItem dropBg" href="judge.html"><span class="icons icon-evaluate"></span>评价管理</a>
							<div class="childMenu">
								<a class="menuchildItem" href="judge.html">评价管理</a>
							</div>
						</li>
						<li>
							<a class="menuItem dropBg" href="complain.html"><span class="icons icon-price"></span>申述退款</a>
							<div class="childMenu">
								<a class="menuchildItem" href="complain.html">申述</a>
								<a class="menuchildItem" href="refund_money.html">退款</a>
							</div>
						</li>
						<li class="bb0">
							<a class="menuItem dropBg" href="message.html"><span class="icons icon-news"></span>消息中心</a>
							<div class="childMenu">
								<a class="menuchildItem" href="message.html">消息中心</a>
							</div>
						</li>
					</ul>
					<!--右内容-->
					<div class="menuContent fr">
						<div class="menuConHeader">
							<!--面包屑导航-->
							<div class="breadcrumb">
								<p>当前位置：
									<a href="personal.html">账户管理</a> &gt;
									<a class="curPage" href="javascript:;">实名认证</a>
								</p>
							</div>
						</div>
						<div class="menuConBody hide">
							<label>认证：</label>
							<div class="cefiItem single hide">
								<img src="_IMG_/Personalauthentication.png"/>
								<p class="big">个人认证</p>
								<p class="small">个人基本信息认证</p>
								<a class="cefiBtn" href="single_cefi.html">立即认证</a>
							</div>
							<div class="cefiItem company hide">
								<img src="_IMG_/CorporateCertification.png"/>
								<p class="big">企业认证</p>
								<p class="small">企业基本信息认证</p>
								<a class="cefiBtn" href="company_cefi.html">立即认证</a>
							</div>
						</div>
					</div>
				</div>
			</div>

{/block}



{block name="js"}
<!-- 脚本引入 -->
		<script src="_P_/laydate/laydate.js"></script>
		<script>
			$(document).ready(function() {
				var userinfo = $.cookie('userinfo');
				if (userinfo) {
					var user_login = $.base64.decode(userinfo).split(",");
					var uid = user_login[0];
					$.ajax({
						type: "get",
						url: "/index.php/api/form/user_detail",
						data:{
							'uid':uid
						},
						dataType: 'jsonp',
						success: function (msg) {
							if (msg.code == 200) {
								if(msg.data.authentication==1||msg.data.authentication==3){
									$('.menuConBody').removeClass('hide');
									$('.single .cefiBtn').html('查看认证');
									$('.single').removeClass('hide');
								}
								if(msg.data.authentication==2||msg.data.authentication==4){
									$('.menuConBody').removeClass('hide');
									$('.single').empty();
									$('.company .cefiBtn').html('查看认证');
									$('.company').removeClass('hide');
								}
								if(msg.data.authentication==0){
									$('.menuConBody').removeClass('hide');
									$('.single').removeClass('hide');
									$('.company').removeClass('hide');
								}

							}
							if (msg.code == 1000) {
								layer.msg('网络错误！', {icon: 5});
							}
						}
					});
				}
			})
		</script>

{/block}

			